package com.shop.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.admin.dto.CouponRuleDTO;
import com.shop.admin.dto.PageCouponBatchDTO;
import com.shop.admin.entity.CouponRule;
import com.shop.admin.utils.PageUtils;
import com.shop.admin.vo.CategoryUnderProductsVo;

import java.util.List;

public interface CouponRuleService extends IService<CouponRule> {
    PageUtils queryPageCouponRule(PageCouponBatchDTO pageCouponBatchDTO);

    boolean saveCoupon(CouponRuleDTO couponRuleDTO);

    boolean updateCoupon(CouponRuleDTO couponRuleDTO);

    List<CategoryUnderProductsVo> categoryUnderProducts();
}
